
#ifndef __RSA_H
#define __RSA_H	 

typedef struct {
	unsigned int modulus;
	unsigned int exponent;
}key_t;


int generate_rand(char *p, int len);
void rsa_gen_keys(key_t *pub, key_t *priv);
void rsa_encrypt(key_t key, char *mw, int Length, unsigned int *cw);
void rsa_decrypt(key_t key, unsigned int *cw, int Length, char *mw);
int test_rsa(int len);

#endif

